package factory.factoryMethod;

import factory.bean.Vehicle;
import factory.simpleFactory.VehicleFactory;

public class Main {
    public static void main(String[] args) {

        //调用者直接调用所需对象的工厂对象
        Vehicle car = CarFactory.createCar();
        car.showInfo();
        Vehicle truck = TruckFactory.createTruck();
        truck.showInfo();
    }
}
